package com.alibaba.nacos.common.notify.listener;

import com.alibaba.nacos.common.notify.Event;
import com.google.common.util.concurrent.MoreExecutors;

import java.util.concurrent.Executor;

public abstract class Subscriber<T extends Event> {

    public abstract void onEvent(T event);
    public abstract Class<? extends Event> subscribeType();
    public Executor executor() {
        return MoreExecutors.directExecutor();
    }
}

